Integrand size = 29, antiderivative size = 92 \[ \int \frac {\cos ^7(c+d x) \sin ^n(c+d x)}{(a+a \sin (c+d x))^3} \, dx=\frac {\sin ^{1+n}(c+d x)}{a^3 d (1+n)}-\frac {3 \sin ^{2+n}(c+d x)}{a^3 d (2+n)}+\frac {3 \sin ^{3+n}(c+d x)}{a^3 d (3+n)}-\frac {\sin ^{4+n}(c+d x)}{a^3 d (4+n)} \]
sin(d*x+c)^(1+n)/a^3/d/(1+n)-3*sin(d*x+c)^(2+n)/a^3/d/(2+n)+3*sin(d*x+c)^( 3+n)/a^3/d/(3+n)-sin(d*x+c)^(4+n)/a^3/d/(4+n)
Time = 0.13 (sec) , antiderivative size = 66, normalized size of antiderivative = 0.72 \[ \int \frac {\cos ^7(c+d x) \sin ^n(c+d x)}{(a+a \sin (c+d x))^3} \, dx=\frac {\sin ^{1+n}(c+d x) \left (\frac {1}{1+n}-\frac {3 \sin (c+d x)}{2+n}+\frac {3 \sin ^2(c+d x)}{3+n}-\frac {\sin ^3(c+d x)}{4+n}\right )}{a^3 d} \]
(Sin[c + d*x]^(1 + n)*((1 + n)^(-1) - (3*Sin[c + d*x])/(2 + n) + (3*Sin[c + d*x]^2)/(3 + n) - Sin[c + d*x]^3/(4 + n)))/(a^3*d)
Time = 0.34 (sec) , antiderivative size = 87, normalized size of antiderivative = 0.95, number of steps used = 5, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.138, Rules used = {3042, 3315, 53, 2009}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \frac {\cos ^7(c+d x) \sin ^n(c+d x)}{(a \sin (c+d x)+a)^3} \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \frac {\cos (c+d x)^7 \sin (c+d x)^n}{(a \sin (c+d x)+a)^3}dx\) |
\(\Big \downarrow \) 3315 |
\(\displaystyle \frac {\int \sin ^n(c+d x) (a-a \sin (c+d x))^3d(a \sin (c+d x))}{a^7 d}\) |
\(\Big \downarrow \) 53 |
\(\displaystyle \frac {\int \left (a^3 \sin ^n(c+d x)-3 a^3 \sin ^{n+1}(c+d x)+3 a^3 \sin ^{n+2}(c+d x)-a^3 \sin ^{n+3}(c+d x)\right )d(a \sin (c+d x))}{a^7 d}\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle \frac {\frac {a^4 \sin ^{n+1}(c+d x)}{n+1}-\frac {3 a^4 \sin ^{n+2}(c+d x)}{n+2}+\frac {3 a^4 \sin ^{n+3}(c+d x)}{n+3}-\frac {a^4 \sin ^{n+4}(c+d x)}{n+4}}{a^7 d}\) |
((a^4*Sin[c + d*x]^(1 + n))/(1 + n) - (3*a^4*Sin[c + d*x]^(2 + n))/(2 + n) + (3*a^4*Sin[c + d*x]^(3 + n))/(3 + n) - (a^4*Sin[c + d*x]^(4 + n))/(4 + n))/(a^7*d)
3.8.2.3.1 Defintions of rubi rules used
Int[((a_.) + (b_.)*(x_))^(m_.)*((c_.) + (d_.)*(x_))^(n_.), x_Symbol] :> Int [ExpandIntegrand[(a + b*x)^m*(c + d*x)^n, x], x] /; FreeQ[{a, b, c, d, n}, x] && IGtQ[m, 0] && ( !IntegerQ[n] || (EqQ[c, 0] && LeQ[7*m + 4*n + 4, 0]) || LtQ[9*m + 5*(n + 1), 0] || GtQ[m + n + 2, 0])
Int[cos[(e_.) + (f_.)*(x_)]^(p_)*((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_ .)*((c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)])^(n_.), x_Symbol] :> Simp[1/(b^p* f) Subst[Int[(a + x)^(m + (p - 1)/2)*(a - x)^((p - 1)/2)*(c + (d/b)*x)^n, x], x, b*Sin[e + f*x]], x] /; FreeQ[{a, b, e, f, c, d, m, n}, x] && Intege rQ[(p - 1)/2] && EqQ[a^2 - b^2, 0]
Time = 1.66 (sec) , antiderivative size = 123, normalized size of antiderivative = 1.34
method | result | size |
derivativedivides | \(\frac {\sin \left (d x +c \right ) {\mathrm e}^{n \ln \left (\sin \left (d x +c \right )\right )}}{a^{3} d \left (1+n \right )}-\frac {3 \left (\sin ^{2}\left (d x +c \right )\right ) {\mathrm e}^{n \ln \left (\sin \left (d x +c \right )\right )}}{a^{3} d \left (2+n \right )}+\frac {3 \left (\sin ^{3}\left (d x +c \right )\right ) {\mathrm e}^{n \ln \left (\sin \left (d x +c \right )\right )}}{a^{3} d \left (3+n \right )}-\frac {\left (\sin ^{4}\left (d x +c \right )\right ) {\mathrm e}^{n \ln \left (\sin \left (d x +c \right )\right )}}{a^{3} d \left (4+n \right )}\) | \(123\) |
default | \(\frac {\sin \left (d x +c \right ) {\mathrm e}^{n \ln \left (\sin \left (d x +c \right )\right )}}{a^{3} d \left (1+n \right )}-\frac {3 \left (\sin ^{2}\left (d x +c \right )\right ) {\mathrm e}^{n \ln \left (\sin \left (d x +c \right )\right )}}{a^{3} d \left (2+n \right )}+\frac {3 \left (\sin ^{3}\left (d x +c \right )\right ) {\mathrm e}^{n \ln \left (\sin \left (d x +c \right )\right )}}{a^{3} d \left (3+n \right )}-\frac {\left (\sin ^{4}\left (d x +c \right )\right ) {\mathrm e}^{n \ln \left (\sin \left (d x +c \right )\right )}}{a^{3} d \left (4+n \right )}\) | \(123\) |
parallelrisch | \(\frac {2 \left (\sin ^{n}\left (d x +c \right )\right ) \left (\left (n^{3}+\frac {15}{2} n^{2}+17 n +\frac {21}{2}\right ) \cos \left (2 d x +2 c \right )-\frac {\left (3+n \right ) \left (2+n \right ) \left (1+n \right ) \cos \left (4 d x +4 c \right )}{16}+\left (-\frac {3}{8} n^{3}-\frac {21}{8} n^{2}-\frac {21}{4} n -3\right ) \sin \left (3 d x +3 c \right )+\left (21+\frac {99}{8} n^{2}+\frac {13}{8} n^{3}+\frac {115}{4} n \right ) \sin \left (d x +c \right )-\frac {15 \left (1+n \right ) \left (n +\frac {18}{5}\right ) \left (3+n \right )}{16}\right )}{a^{3} d \left (n^{2}+4 n +3\right ) \left (n^{2}+6 n +8\right )}\) | \(139\) |
1/a^3/d/(1+n)*sin(d*x+c)*exp(n*ln(sin(d*x+c)))-3/a^3/d/(2+n)*sin(d*x+c)^2* exp(n*ln(sin(d*x+c)))+3/a^3/d/(3+n)*sin(d*x+c)^3*exp(n*ln(sin(d*x+c)))-1/a ^3/d/(4+n)*sin(d*x+c)^4*exp(n*ln(sin(d*x+c)))
Time = 0.28 (sec) , antiderivative size = 160, normalized size of antiderivative = 1.74 \[ \int \frac {\cos ^7(c+d x) \sin ^n(c+d x)}{(a+a \sin (c+d x))^3} \, dx=-\frac {{\left ({\left (n^{3} + 6 \, n^{2} + 11 \, n + 6\right )} \cos \left (d x + c\right )^{4} + 4 \, n^{3} - {\left (5 \, n^{3} + 36 \, n^{2} + 79 \, n + 48\right )} \cos \left (d x + c\right )^{2} + 30 \, n^{2} - {\left (4 \, n^{3} - 3 \, {\left (n^{3} + 7 \, n^{2} + 14 \, n + 8\right )} \cos \left (d x + c\right )^{2} + 30 \, n^{2} + 68 \, n + 48\right )} \sin \left (d x + c\right ) + 68 \, n + 42\right )} \sin \left (d x + c\right )^{n}}{a^{3} d n^{4} + 10 \, a^{3} d n^{3} + 35 \, a^{3} d n^{2} + 50 \, a^{3} d n + 24 \, a^{3} d} \]
-((n^3 + 6*n^2 + 11*n + 6)*cos(d*x + c)^4 + 4*n^3 - (5*n^3 + 36*n^2 + 79*n + 48)*cos(d*x + c)^2 + 30*n^2 - (4*n^3 - 3*(n^3 + 7*n^2 + 14*n + 8)*cos(d *x + c)^2 + 30*n^2 + 68*n + 48)*sin(d*x + c) + 68*n + 42)*sin(d*x + c)^n/( a^3*d*n^4 + 10*a^3*d*n^3 + 35*a^3*d*n^2 + 50*a^3*d*n + 24*a^3*d)
Timed out. \[ \int \frac {\cos ^7(c+d x) \sin ^n(c+d x)}{(a+a \sin (c+d x))^3} \, dx=\text {Timed out} \]
Time = 0.24 (sec) , antiderivative size = 126, normalized size of antiderivative = 1.37 \[ \int \frac {\cos ^7(c+d x) \sin ^n(c+d x)}{(a+a \sin (c+d x))^3} \, dx=-\frac {{\left ({\left (n^{3} + 6 \, n^{2} + 11 \, n + 6\right )} \sin \left (d x + c\right )^{4} - 3 \, {\left (n^{3} + 7 \, n^{2} + 14 \, n + 8\right )} \sin \left (d x + c\right )^{3} + 3 \, {\left (n^{3} + 8 \, n^{2} + 19 \, n + 12\right )} \sin \left (d x + c\right )^{2} - {\left (n^{3} + 9 \, n^{2} + 26 \, n + 24\right )} \sin \left (d x + c\right )\right )} \sin \left (d x + c\right )^{n}}{{\left (n^{4} + 10 \, n^{3} + 35 \, n^{2} + 50 \, n + 24\right )} a^{3} d} \]
-((n^3 + 6*n^2 + 11*n + 6)*sin(d*x + c)^4 - 3*(n^3 + 7*n^2 + 14*n + 8)*sin (d*x + c)^3 + 3*(n^3 + 8*n^2 + 19*n + 12)*sin(d*x + c)^2 - (n^3 + 9*n^2 + 26*n + 24)*sin(d*x + c))*sin(d*x + c)^n/((n^4 + 10*n^3 + 35*n^2 + 50*n + 2 4)*a^3*d)
Exception generated. \[ \int \frac {\cos ^7(c+d x) \sin ^n(c+d x)}{(a+a \sin (c+d x))^3} \, dx=\text {Exception raised: TypeError} \]
Exception raised: TypeError >> an error occurred running a Giac command:IN PUT:sage2:=int(sage0,sageVARx):;OUTPUT:Unable to divide, perhaps due to ro unding error%%%{-1,[0,1,3,0,0]%%%}+%%%{3,[0,1,2,0,0]%%%}+%%%{-3,[0,1,1,0,0 ]%%%}+%%%
Time = 11.53 (sec) , antiderivative size = 242, normalized size of antiderivative = 2.63 \[ \int \frac {\cos ^7(c+d x) \sin ^n(c+d x)}{(a+a \sin (c+d x))^3} \, dx=-\frac {{\sin \left (c+d\,x\right )}^n\,\left (261\,n-336\,\sin \left (c+d\,x\right )-168\,\cos \left (2\,c+2\,d\,x\right )+6\,\cos \left (4\,c+4\,d\,x\right )+48\,\sin \left (3\,c+3\,d\,x\right )-460\,n\,\sin \left (c+d\,x\right )-272\,n\,\cos \left (2\,c+2\,d\,x\right )+11\,n\,\cos \left (4\,c+4\,d\,x\right )+84\,n\,\sin \left (3\,c+3\,d\,x\right )-198\,n^2\,\sin \left (c+d\,x\right )-26\,n^3\,\sin \left (c+d\,x\right )+114\,n^2+15\,n^3-120\,n^2\,\cos \left (2\,c+2\,d\,x\right )-16\,n^3\,\cos \left (2\,c+2\,d\,x\right )+6\,n^2\,\cos \left (4\,c+4\,d\,x\right )+n^3\,\cos \left (4\,c+4\,d\,x\right )+42\,n^2\,\sin \left (3\,c+3\,d\,x\right )+6\,n^3\,\sin \left (3\,c+3\,d\,x\right )+162\right )}{8\,a^3\,d\,\left (n^4+10\,n^3+35\,n^2+50\,n+24\right )} \]
-(sin(c + d*x)^n*(261*n - 336*sin(c + d*x) - 168*cos(2*c + 2*d*x) + 6*cos( 4*c + 4*d*x) + 48*sin(3*c + 3*d*x) - 460*n*sin(c + d*x) - 272*n*cos(2*c + 2*d*x) + 11*n*cos(4*c + 4*d*x) + 84*n*sin(3*c + 3*d*x) - 198*n^2*sin(c + d *x) - 26*n^3*sin(c + d*x) + 114*n^2 + 15*n^3 - 120*n^2*cos(2*c + 2*d*x) - 16*n^3*cos(2*c + 2*d*x) + 6*n^2*cos(4*c + 4*d*x) + n^3*cos(4*c + 4*d*x) + 42*n^2*sin(3*c + 3*d*x) + 6*n^3*sin(3*c + 3*d*x) + 162))/(8*a^3*d*(50*n + 35*n^2 + 10*n^3 + n^4 + 24))